package cn.rocky.offer;

public class offer11 {

    public int minArray(int[] numbers) {
        int number = Integer.MAX_VALUE;
        if (numbers.length == 0) {
            return number;
        }
        for (int num: numbers) {
            if (number > num) {
                number = num;
            }
        }
        return number;
    }

}
